package com.ihr360.rest.core;

import com.fasterxml.jackson.annotation.JsonValue;

import java.util.Locale;

public enum Ihr360JsonSchemaFormat {
    EMAIL, DATE_TIME, HOSTNAME, IPV4, IPV6, URI;

    /*
     * (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @JsonValue
    public String toString() {
        return name().toLowerCase(Locale.US).replaceAll("_", "-");
    }
}